cmake_minimum_required(VERSION 3.12)

project(OpenGLDemo)

file(COPY ${CMAKE_SOURCE_DIR}/Shaders/fragmentShader.glsl DESTINATION ${CMAKE_BINARY_DIR})
file(COPY ${CMAKE_SOURCE_DIR}/Shaders/vertexShader.glsl DESTINATION ${CMAKE_BINARY_DIR})
file(COPY ${CMAKE_SOURCE_DIR}/Assets/box_container.png DESTINATION ${CMAKE_BINARY_DIR})
file(COPY ${CMAKE_SOURCE_DIR}/Assets/smile_face.png DESTINATION ${CMAKE_BINARY_DIR})

include_directories(${CMAKE_SOURCE_DIR}/Dependencies/GLAD/include 
					${CMAKE_SOURCE_DIR}/Dependencies/GLFW/include
					${CMAKE_SOURCE_DIR}/Dependencies/GLM/include)

set(CMAKE_CXX_STANDARD 17)

add_executable(OpenGLDemo 
				"App.cpp" 
				"Texture.cpp" 
				"Camera.cpp" 
				"Shader.cpp"
				"${CMAKE_SOURCE_DIR}/Dependencies/GLAD/src/glad.c")

target_link_libraries(OpenGLDemo opengl32.lib 
								 ${CMAKE_SOURCE_DIR}/Dependencies/GLFW/libs/glfw3.lib)